<table>
    <thead>
    <tr>
        <th>序号</th>
        <th>微信昵称</th>
        @if($role != 1)
            <th>用户类型</th>
        @endif
        @if($role == 1)
            <th>姓名</th>
        @else
            <th>单位名称</th>
        @endif
        <th width="15px">联系手机号</th>
        @if($role == 1)
            <th style="width: 30px;">身份证号</th>
            <th style="width: 30px;">培训证号</th>
            <th>培训有效期</th>
        @endif
        <th>审核状态</th>
        <th>是否黑名单</th>
        <th>注册时间</th>
        <th>备注</th>
    </tr>
    </thead>
    <tbody>
    @foreach($invoices as $invoice)
        <tr>
            <td>{{$invoice['id']}}</td>
            <td>{{$invoice['nickname']}}</td>
            @if($role != 1)
                <td>{{$invoice['role'] == 2 ? '提货单位' : '承运单位'}}</td>
            @endif
            <td>{{$invoice['title']}}</td>
            <td>{{ $invoice['phone']}}</td>
            @if($role == 1)
                <td >{{" " . $invoice['id_card'] ."\t"}}</td>
                <td>{{$invoice['education_num'] . " "}}</td>
                <td>{{$invoice['end_date']}}</td>
            @endif
            <td>{{ $invoice['audit_status'] == 1 ? '通过' : '不通过' }}</td>
            <td>{{ $invoice['is_black'] == 1 ? '否' : '是' }}</td>
            <td>{{ $invoice['created_at']}}</td>
            <td>{{ $invoice['remark']}}</td>
        </tr>
    @endforeach
    </tbody>
</table>